package com.hoshiibuy.spu.feign.hystrix;

import com.hoshiibuy.common.rpc.Response;
import com.hoshiibuy.spu.feign.CompanyFeignService;

/**
 * 公司微服务FeignClient熔断器
 *
 * @author : yangcheng
 * @date : 2019/5/6 14:23
 * @mail : maiboyc@163.com
 **/
public class HystrixCompanyFeignFallback implements CompanyFeignService {

    /**
     * 根据id获取
     * @param id ID
     * @return Response
     */
    @Override
    public Response getById(Long id) {
        return Response.failed("查询公司信息失败");
    }
}
